﻿using INSE6260.OnlineBanking.Model.Accounts;
using INSE6260.OnlineBanking.Infrastructure.Domain;
using INSE6260.OnlineBanking.Infrastructure;

namespace INSE6260.OnlineBanking.Model.Transaction
{
    public class Transaction : EntityBase, IAggregateRoot
    {
        public int Id { get; set; }
        public System.DateTime TransactionDate { get; set; }
        public decimal Amount { get; set; }
        public string TransactionType { get; set; }
        public int FromAccountId { get; set; }
        public int ToAccountId { get; set; }
        public decimal Balance { get; set; }

        public virtual Account Account { get; set; }
        public virtual Account Account1 { get; set; }
    }
}
